Skip to content

feat!: support dynamically composed Expression#33

Merged
haraldmaida merged 1 commit into
mainfrom
feat/support-dynamically-composed-expression
May 10, 2025
Merged

feat!: support dynamically composed Expression#33
haraldmaida merged 1 commit into
mainfrom
feat/support-dynamically-composed-expression

Conversation

@haraldmaida
Copy link
Copy Markdown
Member

@haraldmaida haraldmaida commented May 10, 2025

It might be useful to compose the expression in a Spec dynamically. Therefore the implementation of Expression is changed to hold a Cow<'a, str> instead of a &'a str.

BREAKING-CHANGE:

  • Expression no longer implements Copy
  • the trait Expectation has changed method signature for message() which takes a borrowed Expression instead of an owned one
  • the method Spec::named() is no longer const

BREAKING-CHANGE:
- `Expression` no longer implements `Copy`
- the trait `Expectation` has changed method signature for `message()` which takes a borrowed `Expression` instead of an owned one
- the method `Spec::named()` is no longer const
@haraldmaida haraldmaida self-assigned this May 10, 2025
@haraldmaida haraldmaida added the enhancement New feature or request label May 10, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented May 10, 2025

Codecov Report

Attention: Patch coverage is 98.03922% with 2 lines in your changes missing coverage. Please review.

Project coverage is 96.07%. Comparing base (86c186f) to head (acaaef8).

Files with missing lines Patch % Lines
src/spec/mod.rs 75.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #33      +/-   ##
==========================================
+ Coverage   96.06%   96.07%   +0.01%     
==========================================
  Files          25       25              
  Lines        2795     2806      +11     
  Branches     2795     2806      +11     
==========================================
+ Hits         2685     2696      +11     
  Misses        106      106              
  Partials        4        4              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@haraldmaida haraldmaida merged commit 19d6a47 into main May 10, 2025
18 checks passed
@haraldmaida haraldmaida deleted the feat/support-dynamically-composed-expression branch May 10, 2025 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant